﻿
@{
    ViewBag.Title = "导入数据";
}

<div class="page-title">

    <div class="title-env">
        <h1 class="title"><i class="fa fa-file-text"></i>导入</h1>
    </div>

    <div class="breadcrumb-env">
    </div>

</div>
<div class="row form-leftlabel">
    <div class="col-md-12">
        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h1 class="panel-title">导入说明</h1>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form class="form-horizontal form-leftlabel">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">学生数据：</label>
                                    <div class="col-sm-7">
                                        <label> Execl文件名称规则：<b>stu_学校名称</b>,如：stu_学校名称</label>
                                        <div class="form-group">
                                            <a class="btn btn-default" href="~/Temp/Downloads/stu_学校名称.xlsx" download="学生信息导入.xlsx">下载学生模板文件<i class="fa-download"></i></a>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-3 control-label">老师数据：</label>
                                    <div class="col-sm-7">
                                        <label> Execl文件名称规则:<b>tea_学校名称</b>,如：tea_学校名称</label>

                                        <div class="form-group">
                                            <a class="btn btn-default" href="~/Temp/Downloads/tea_学校名称.xlsx" download="老师信息导入.xlsx">下载老师模板文件<i class="fa-download"></i></a>
                                        </div>
                                    </div>
                                </div>

                            </form>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h1 class="panel-title">导入操作</h1>
                    </div>
                    <div class="panel-body">
                        <form id="DataImportForm" method="POST" action="@Url.Action("ImportData", "Home", new {area = string.Empty})">
                            <div class="col-sm-7">
                                <input type="file" placeholder="选择模板文件并上传" name="selectExecl" value="" class="form-control " id="selectMemberTxt"
                                       accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
                            </div>

                            <div class="col-sm-5">
                                <button class="button button-plain2 button-rounded" type="submit" id="btnImport">导入</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h1 class="panel-title">导入结果</h1>
                    </div>
                    <div class="panel-body">

                        <div class="col-sm-7">
                            <textarea id="verifyResult" class="form-control" value="" rows="6"></textarea>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="~/Scripts/jquery-3.3.1.min.js"></script>
<script src="~/Scripts/jquery.form.js"></script><!--提交表单-->
<link href="~/Content/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
<script src="~/Content/layer/layer.js"></script><!--layer控件-->
<script src="~/Content/ExportExcel.js"></script>


